package com.sws.test;

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		int f;
		Scanner in = new Scanner(System.in);
		f = in.nextInt();
		System.out.println((int)((f-32)/(9/5.0)));
	}
}